﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;

namespace WindowsTest
{
    public class LogService
    {
        static ILog log = LogManager.GetLogger(typeof(LogService));
        /// <summary>
        /// 数据出错信息
        /// </summary>
        /// <param name="message"></param>
        public static void Info(object message)
        {
            log.Info(message);
        }
        /// <summary>
        /// 系统出错信息
        /// </summary>
        /// <param name="message"></param>
        public static void Error(object message)
        {
            log.Error(message);
        }
        /// <summary>
        /// 系统出错信息
        /// </summary>
        /// <param name="message"></param>
        /// <param name="exception"></param>
        public static void Error(object message, Exception exception)
        {
            log.Error(message, exception);
        }
    }
}
